﻿<div class="main_top">
	<ul class="pagenavi">
		<li><a href="/">首页</a></li>
		<li class="li2"><a href="/category/">企业分类</a></li>
		<li class="li2">企业分类列表</li>
	</ul>
</div>
<div class="mainsearch">
	<div class="gj">
	<h2>详细检索</h2>
		<div class="slist">
			<span class="stt">企业分类：</span>
			<p>
				<a href="/category/99_{{$scaleid}}_{{$typeid}}_0.html" {{if $cateid eq '99'}}class="curr"{{/if}}>不限</a>
				{{foreach from=$cateSubCae key=key item=item}}
				<a href="/category/{{$key}}_{{$scaleid}}_{{$typeid}}_1.html" {{if $cateid eq $key}}class="curr"{{/if}} alt="{{$item}}" title="{{$item}}">{{$item}}</a>
				{{/foreach}}
			</p>
			<div class="clear"></div>
		</div>
		
		<div class="slist">
			<span class="stt">企业规模：</span>
			<p>
				<a href="/category/{{$cateid}}_99_{{$typeid}}_1.html" {{if $scaleid eq '99'}}class="curr"{{/if}}>不限</a>
				{{foreach from=$cor_scale_arr key=key item=item}}
				<a href="/category/{{$cateid}}_{{$key}}_{{$typeid}}_1.html" {{if $scaleid eq $key}}class="curr"{{/if}} alt="{{$item}}" title="{{$item}}">{{$item}}</a>
				{{/foreach}}
			</p>
			<div class="clear"></div>
		</div>
		
		<div class="slist">
			<span class="stt">企业性质：</span>
			<p>
				<a href="/category/{{$cateid}}_{{$scaleid}}_99_1.html" {{if $typeid eq '99'}}class="curr"{{/if}}>不限</a>
				{{foreach from=$cor_type_arr key=key item=item}}
				<a href="/category/{{$cateid}}_{{$scaleid}}_{{$key}}_1.html" {{if $typeid eq $key}}class="curr"{{/if}} alt="{{$item}}" title="{{$item}}">{{$item}}</a>
				{{/foreach}}
			</p>
			<div class="clear"></div>
		</div>
	</div>
	<div class="fs">
		<form method="post" action="/search.php">
		<span class="tt">快速搜索&nbsp;</span>
		<span><input class="ipt" name="search_name" value="输入企业名称或地址" type="text"></span>
		<span class="fs_img">
			<input src="/images/search_btn2.gif" type="image"></span>
		</form>
	</div>
</div>
<div class="main_left">
	{{section name="loop" loop=$rows}}
	<div class="cor_info">
		<div class="cor_info_inner">
			<div class="cor_name">
				<h1><a href="/corporation/{{$rows[loop].id}}/" target="_blank">{{$rows[loop].name}}</a></h1>
			</div>
			<div class="est_total"> 
				{{if $rows[loop].estimate_total > 0 }}
					共有<em> <a href="/corporation/{{$rows[loop].id}}/" target="_blank">{{$rows[loop].estimate_total|default:0}}</a> </em>条评价 
				{{else}}
					暂无评价！
				{{/if}}
			</div>
			<div class="est_list">
				<dl class="clear">
					<dt><b>地址：</b></dt>
					<dd>{{$rows[loop].address}}</dd>
				</dl>
				<dl class="clear">
					<dt><b>电话：</b></dt>
					<dd>{{$rows[loop].tel}}</dd>
				</dl>
				{{if $rows[loop].description != "..."}}
				<dl class="clear">
					<dt><b>简介：</b></dt>
					<dd>{{$rows[loop].description}}<a target="_blank" href="/corporation/{{$rows[loop].id}}/profile.html">【点击查看简介】</a></dd>
				</dl>
				{{/if}}
			</div>
			<div class="cor_photo">
				<img src="{{$rows[loop].imgPath}}" title="{{$rows[loop].name}}" width="150px" height="110px"/>
			</div>
			<div class="cor_est">
				<a href="/corporation/{{$rows[loop].id}}/" target="_blank"><img src="{{$host_root}}/images/estimate.gif" title="我要点评"/></a>
			</div>
		</div>
	</div>
	{{/section}}
	<div class="fenye">
		{{$pageList}}
	</div>
</div>
<!--main left end -->
<div class="main_right">
	<div class="index_search">
		<img src="/images/index_search.gif" /><br/>
		<div class="index_search_1">
			<form name="mainform" method="post" action="/search.php">
			<div class="index_search_2">我要搜：<input type="text" name="search_name" value="输入企业名称或地址"><span>搜搜其它IT企业的信息和点评</span></div>
			<div class="index_search_3"><input type="image" src="/images/index_submit.gif"></div>
			</form>
		</div>
	</div>
	<div class="rank">
		<div class="header">企业热门排行</div>
		<ul>
			{{foreach from=$rank_rows key=key item=item}}
			<li><a href="/corporation/{{$item.id}}/" title="{{$item.name}}">{{$item.name}}</a></li>
			{{/foreach}}
		</ul>
	</div>
	<div class="rank">
		<div class="header">推荐企业</div>
		<ul>
			{{foreach from=$recom_rows key=key item=item}}
			<li><a href="/corporation/{{$item.recom_id}}/" title="{{$item.title}}">{{$item.title}}</a></li>
			{{/foreach}}
		</ul>
	</div>
</div>
<!--main right end-->
<div class="clear"></div>
</div>
<!--main end -->
<script type="text/javascript" src="/script/jquery.js"></script>
<script type="text/javascript" src="/script/common.js"></script>
<script>
	var orig = '输入企业名称或地址';
	$("input[name='search_name']").each(function(){
		$(this).focus(function(){
			if($(this).val() == orig){
				$(this).val('').css("color","#000");
			}
		}).blur(function(){
			if($(this).val() == ""){
				$(this).val(orig).css("color","#CCC");
			}
		})
	})
</script>